package com.qjs.dao;

import java.util.List;
import java.util.Map;

public 	interface BaseDao<BaseModel> {
	int insert(BaseModel record) throws Exception;
	
	int insertArray(List<BaseModel> records) throws Exception;

	int deleteById(Long id) throws Exception;

	int deleteBy(BaseModel record) throws Exception;

	int updateBy(BaseModel record) throws Exception;
	
	int updateArray(List<BaseModel> records) throws Exception;

	Integer getCount(Map<String, Object> paramsMap) throws Exception;

	BaseModel getById(Long id) throws Exception;

	List<BaseModel> queryBy(BaseModel record) throws Exception;
	

	List<Map<String, Object>> search(String searchStr) throws Exception;
	
	List<Map<String, Object>> search( String[] searchStr) throws Exception;

	List<Map<String, Object>> search(Map<String, Object> strMap) throws Exception;

	List<Map<String, Object>> search2(Map<String, Object> strMap) throws Exception;
	
	List<Map<String, Object>> search3(Map<String, Object> strMap) throws Exception;

	List<Map<String, Object>> queryBy2(Map<String, Object> strMap);
	
	List<Map<String, Object>> queryBy3(Map<String, Object> strMap);

}
